Skip to content

[Spark-4512] [SQL] Unresolved Attribute Exception in Sort By #3386

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from

Conversation

chenghao-intel
Copy link
Contributor

It will cause exception while do query like:
SELECT key+key FROM src sort by value;

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23673 has started for PR 3386 at commit 503b263.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 20, 2014

Test build #23673 has finished for PR 3386 at commit 503b263.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Sort(

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23673/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Nov 25, 2014

Test build #23832 has started for PR 3386 at commit e0047a0.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 25, 2014

Test build #23832 has finished for PR 3386 at commit e0047a0.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23832/
Test FAILed.

@SparkQA
Copy link

SparkQA commented Nov 25, 2014

Test build #23841 has started for PR 3386 at commit 6e720af.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Nov 25, 2014

Test build #23841 has finished for PR 3386 at commit 6e720af.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Sort(

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/23841/
Test PASSed.

Project(projectList ++ missingInProject, child)))
} else {
logDebug(s"Failed to find $missingInProject in ${p.output.mkString(", ")}")
s // Nothing we can do here. Return original plan.
}
case s @ Sort(ordering, a @ Aggregate(grouping, aggs, child)) if !s.resolved && a.resolved =>
case s @ Sort(ordering, global, a @ Aggregate(grouping, aggs, child))
if !s.resolved && a.resolved =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent 4 spaces.

@marmbrus
Copy link
Contributor

Sorry for the delay! This looks great. Two minor comments then LGTM.

asfgit pushed a commit that referenced this pull request Dec 17, 2014
Add `sort by` support for both DSL & SqlParser.

This PR is relevant with #3386, either one merged, will cause the other rebased.

Author: Cheng Hao <[email protected]>

Closes #3481 from chenghao-intel/sortby and squashes the following commits:

041004f [Cheng Hao] Add sort by for DSL & SimpleSqlParser
@chenghao-intel chenghao-intel changed the title [Spark-4512] [SQL] Unresolved Attribute Exception in Sort By [Spark-4512] [SQL] WIP: Unresolved Attribute Exception in Sort By Dec 19, 2014
@SparkQA
Copy link

SparkQA commented Dec 19, 2014

Test build #24615 has started for PR 3386 at commit b4bde6a.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 19, 2014

Test build #24615 has finished for PR 3386 at commit b4bde6a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Sort(

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24615/
Test PASSed.

@chenghao-intel chenghao-intel changed the title [Spark-4512] [SQL] WIP: Unresolved Attribute Exception in Sort By [Spark-4512] [SQL] Unresolved Attribute Exception in Sort By Dec 19, 2014
@SparkQA
Copy link

SparkQA commented Dec 19, 2014

Test build #24646 has started for PR 3386 at commit b229fe9.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 19, 2014

Test build #24646 has finished for PR 3386 at commit b229fe9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Sort(

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24646/
Test PASSed.

@@ -238,7 +238,7 @@ class SchemaRDD(
* {{{
* schemaRDD.limit(10)
* }}}
*
* o
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yes, it's a typo, revert it. Thanks.

@SparkQA
Copy link

SparkQA commented Dec 20, 2014

Test build #24661 has started for PR 3386 at commit aae675f.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 20, 2014

Test build #24661 has finished for PR 3386 at commit aae675f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Sort(

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24661/
Test PASSed.

@SparkQA
Copy link

SparkQA commented Dec 22, 2014

Test build #24690 has started for PR 3386 at commit 38c78cc.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Dec 22, 2014

Test build #24690 has finished for PR 3386 at commit 38c78cc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Sort(

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/24690/
Test PASSed.

@asfgit asfgit closed this in 53f0a00 Dec 30, 2014
@chenghao-intel chenghao-intel deleted the sort branch July 2, 2015 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants